<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

        $date1 = "2017-1-18 08:00:00";
        $date2 = date("y-m-d h:i:s");
        echo "date1 = " .$date1;
        echo "date2 = " .$date2;
        if(strtotime($date1)<strtotime($date2)){
            echo "date1 zao";
        }else{
            echo "date2 zao";
        }
    
